import { JsonController, Authorized, Body, HeaderParam, Get, Post, UseBefore, QueryParam} from 'routing-controllers';
import { RequestLog } from '@/middleware/requestLog'
import { Inject, Service } from 'typedi';
import { LinkServiceImpl } from '@/impl/LinkServiceImpl';
import { JsonResult, msgList, res } from '@/utils/jsonResult';
import { User } from '@/m_res/user'
import {CommentParams } from "@/model/request/Comment";
import config from '@/config'
import { Token } from '@/m_req/Token'

@Service()
@JsonController(config.setPrefix("app/link"))
export class ArticleController {

  @Inject()
  linkServiceImpl!: LinkServiceImpl;

  @Inject()
  json!: JsonResult<any>;

 
  @Get('/list')
  @UseBefore(RequestLog)
  async LinkList() {
    return this.linkServiceImpl.GetAllLink();
  }

}